package com.hfjc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class PageChangeController {


	/**
	 * 主页
	 * @return
	 */
	@RequestMapping(value ={ "/index","/",""})
	public ModelAndView index() {
		return new ModelAndView("index");
	}

	/**
	 * 关于我们页
	 * @return
	 */
	@RequestMapping(value = "/about")
	public ModelAndView about() {
		return new ModelAndView("about-us");
	}

	/**
	 * 联系我们页
	 * @return
	 */
	@RequestMapping(value = "/contact")
	public ModelAndView contact() {
		return new ModelAndView("contact-us");
	}
	
	/**
	 * 商品页
	 * @return
	 */
	@RequestMapping(value = "/product")
	public ModelAndView product() {
		return new ModelAndView("product");
	}

	/**
	 * 注册页
	 * @return
	 */
	@RequestMapping(value = "/regist")
	public ModelAndView regist() {
		return new ModelAndView("regist");
	}
	/**
	 * 登录
	 * @return
	 */
	@RequestMapping(value = "/login")
	public ModelAndView login() {
		return new ModelAndView("login");
	}
	/**
	 * F&Q(问答)页
	 * @return
	 */
	@RequestMapping(value = "/faq")
	public ModelAndView faq() {
		return new ModelAndView("faq");
	}
	/**
	 * test页
	 * @return
	 */
	@RequestMapping(value = "/test")
	public ModelAndView test() {
		return new ModelAndView("test");
	}
	
	@RequestMapping(value = "/hello")
	public ModelAndView home() {
		return new ModelAndView("hello");
	}
	@RequestMapping(value = "/main")
	public ModelAndView main() {
		return new ModelAndView("main");
	}
	/**
	 * 购物车页面
	 * @return
	 */
	@RequestMapping(value = "/cart")
	public ModelAndView cart(){
		return new ModelAndView("cart");
	}
}
